<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">添加老师</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal">
        {{ csrf_field() }}
        <div class="box-body">
            <div class="form-group">
                <label class="col-sm-2 control-label" for="name">姓名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" id="name" placeholder="请填写真实姓名">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="nice_name">昵称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="nice_name" placeholder="这里填写昵称">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="email">邮箱</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="email" id="email" placeholder="Email地址">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="mobile">手机</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="mobile" placeholder="联系电话">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="qq">qq号</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="qq" placeholder="qq号">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="group_id">老师组</label>
                <div class="col-sm-10">
                    <select class="form-control" name="group_id">
                        @foreach($groups as $group)
                        <option value="{{ $group->id }}">{{ $group->name }}</option>
                        @endforeach
                    </select>
                </div>
            </div>
            <input type="hidden" name="status" value="1">
        </div>
        <!-- /.box-body -->

        <div class="box-footer">
            <button type="button" class="btn btn-primary" data-url="{{ url('admin/teacher') }}" data-type="POST" onclick="subAction(this)">提 交</button>
        </div>
    </form>
</div>